<?php

/**
 * params.php
 *
 */
return array(
    // cache settings -if APC is not loaded, then use CDbCache
    'cache.core' => extension_loaded('apc') ? array( 'class' => 'CApcCache',  ) : array('class' => 'CDbCache', 'connectionID' => 'db', 'autoCreateCacheTable' => true, 'cacheTableName' => 'cache'),
    'cache.content' => array(
        'class' => 'CDbCache',
        'connectionID' => 'db',
        'autoCreateCacheTable' => true,
        'cacheTableName' => 'cache',
    ),
    'cache.file' => array('class' => 'system.caching.CFileCache',),
    'php.exePath' => '/usr/bin/php',
    'db.connect' => array(
        'connectionString' => 'mysql:host=localhost;dbname=post',
        'emulatePrepare' => true,
        'username' => 'root',
        'password' => '',
        'charset' => 'utf8',
        'tablePrefix' => '',
        'schemaCachingDuration' => YII_DEBUG ? 0 : 86400000, // 1000 days
    ),
    'settings' => array(
        'class' => 'common.extensions.settings.CmsSettings',
        'cacheComponentId' => 'cache',
        'cacheId' => 'global_website_settings',
        'cacheTime' => 84000,
        'tableName' => '{{setting}}',
        'dbComponentId' => 'db',
        'createTable' => false,
        'dbEngine' => 'InnoDB',
    ),
    'Paypal' => array(
        'class' => 'common.components.Paypal',
        'apiUsername' => 'YOUR_API_USERNAME',
        'apiPassword' => 'YOUR_API_PASSWORD',
        'apiSignature' => 'YOUR_API_SIGNATURE',
        'apiLive' => false,
        'returnUrl' => 'paypal/confirm/', //regardless of url management component
        'cancelUrl' => 'paypal/cancel/', //regardless of url management component
        // Default currency to use, if not set USD is the default
        'currency' => 'USD',
        // Default description to use, defaults to an empty string
        //'defaultDescription' => '',
        // Default Quantity to use, defaults to 1
        //'defaultQuantity' => '1',
        //The version of the paypal api to use, defaults to '3.0' (review PayPal documentation to include a valid API version)
        //'version' => '3.0',
    ),
    'pageSize' => 20
);